package com.example.administrator.myapplication.tools;

import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

/**
 * Created by YAN on 15/9/21.
 */
public class RequestUtils {

    public static AsyncHttpClient client = new AsyncHttpClient();

    public static void ClientGet(String url, NetCallBackTxt cb) {

        client.get(url, cb);
    }


    public static void ClientPost(String url, RequestParams params, NetCallBackTxt cb) {

        client.post(url, params, cb);


    }

    public static void getImage(String url, AsyncHttpResponseHandler ah){

        client.get(url,ah);
    }


}
